#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <gtk/gtk.h>

extern gchar *filename;
extern guint event_uid;

void display_properties_dialog()
{
    static GtkWidget *label1, *label2,
                     *entry1, *entry2,
//                     *button,
                     *hbox,
                     *vbox1, *vbox2,
                     *window = NULL;
    if (!window)
    {
        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
        hbox = gtk_hbox_new (TRUE, 12);
        gtk_container_add (GTK_CONTAINER (window), hbox);
        vbox1 = gtk_vbox_new (TRUE, 12);
        gtk_box_pack_start(GTK_BOX (hbox), vbox1, TRUE, TRUE, 12);
        vbox2 = gtk_vbox_new (TRUE, 12);
        gtk_box_pack_start(GTK_BOX (hbox), vbox2, TRUE, TRUE, 12);
        label1 = gtk_label_new ("Label1");
        gtk_box_pack_start(GTK_BOX (vbox1), label1, TRUE, TRUE, 12);
        label2 = gtk_label_new ("Label2");
        gtk_box_pack_start(GTK_BOX (vbox1), label2, TRUE, TRUE, 12);
        entry1 = gtk_entry_new ();
        gtk_entry_set_text(GTK_ENTRY(entry1), "Entry1");
        gtk_box_pack_start(GTK_BOX (vbox2), entry1, TRUE, TRUE, 12);
        entry2 = gtk_entry_new ();
        gtk_entry_set_text(GTK_ENTRY(entry2), "Entry2");
        gtk_box_pack_start(GTK_BOX (vbox2), entry2, TRUE, TRUE, 12);
        gtk_widget_show_all (window);
    }
    else
    {
        gtk_widget_destroy (window);
        window = NULL;
    }
}
